home *** CD-ROM | disk | FTP | other *** search
- // ******************************************************************
- //
- // persdlg.h : header file
- //
- // Most of this file is generated by ClassWizard
- //
- // (C) 1993 POET Software
- //
- // ******************************************************************
-
- #include "..\resource.h" // resource IDs
-
- #include <poet.hxx> // header to POET enviroment
- #include <base.hxx> // generated by PTXX for the database base
- #include <hello.hxx> // generated by PTXX when it processes hello.hcd
-
- #ifndef __PERSDLG_H_
- #define __PERSDLG_H__
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CEditPersDlg dialog
-
-
- class CEditPersDlg : public CDialog
- {
- protected:
- Person *person; // pointer to persistent class Person
- PersonAllSet *allperson; // pointer to its AllSet
-
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void ClearControls ();
- virtual void Show (); // display person in dialog
- virtual void Fill (); // actualize person with dialog data
- void Init (); // Init calls other virtual member functions
- virtual void NewPersonPtr (); // new pointer person
- virtual void NewAllSetPtr (); // new pointer allperson and assign
- // it to database
-
- void LoadBitmap ( char * Name, PtBlob * pic ); // load .bmp file into Blob
- void POET_Error ( char *text, int error );
-
- // Generated message map functions
- //{{AFX_MSG(CEditPersDlg)
- afx_msg void OnClickedAdrUpdate();
- afx_msg void OnClickedAdrNew();
- afx_msg void OnClickedStep();
- afx_msg void OnClickedStore();
- afx_msg void OnClickedNext();
- afx_msg void OnClickedCopy();
- afx_msg void OnClickedDelete();
- afx_msg void OnClickedPrev();
- afx_msg void OnClickedAsspic();
- afx_msg void OnChangeEditFirstname();
- afx_msg void OnKillfocusEditFirstname();
- afx_msg void OnClickedAdrDelete();
- afx_msg void OnClickedClear();
- afx_msg void OnDblclkListAddresses();
- afx_msg void OnDblclkListFirstnames();
- afx_msg void OnClickedShowpic();
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- // Dialog Data
- //{{AFX_DATA(CEditPersDlg)
- enum { IDD = IDR_PERS_EDIT };
- CListBox m_CListFirstnames; // Listbox control firstnames
- CListBox m_CListAddresses; // Listbox control addresses
- CString m_strName; // Edit control name
- CString m_strFirstname; // Edit control firstname
- //}}AFX_DATA
-
- int item;
- int firstname_is_modified; // modify-flag for Edit control firstname
-
- CEditPersDlg(CWnd* pParent = NULL, UINT nIDTemp = IDD); // constructor different from
- // standard constructor generated by ClassWizard, cause this class is also used as base class
- ~CEditPersDlg ();
- };
-
- #endif // __PERSDLG_H__
-